namespace CoreMobile.sec
{
    public abstract class AbsrtactSecurityValidator
    {
        private string uniqueID;


        public AbsrtactSecurityValidator()
        {
            uniqueID = this.generatedUniqueID();
        }

        public string UniqueId
        {
            get
            {
                //if (string.IsNullOrEmpty(uniqueID)) uniqueID = this.generatedUniqueID();
                return uniqueID;
            }
            //set { uniqueID = value; }
        }

        protected abstract string generatedUniqueID();

        public bool isValidID(string id)
        {
            return this.UniqueId == id;
        }
    }
}